* {margin:0;padding:0}
.clear { clear: both; height: 0; }

h1, h2, h3, h4 {font-weight:normal;}

h1 { margin: 15px 0; font-size: 22px;}
h2 { font-size: 22px; margin: 15px 0;}
h3 { font-size: 18px; margin: 10px 0;}
h4 { font-size: 16px; margin: 10px 0;}
hr {height: 1px; border: 0; }
p { margin: 15px 0;}
a img { border: none; }

body {
    font-size: 14px;
    font-family: verdana,sans-serif;
}

#container {
    min-width: 960px;
}

#header, #wrapper {
    padding: 0 20px;
}

#header {
    position: relative;
    padding-top: 1px;
}

#header h1 {
    margin: 0;
    padding: 2px 0;
    font-size: 30px;
}

#header h1 a:link, #header h1 a:active, #header h1 a:hover, #header h1 a:visited {
    text-decoration: none;
}

#main {
    width: 74%;
    float: left;
}

.related, .actions, .index {
    margin: 10px 0px 10px 0px;
}

.actions ul li {
    list-style: none;
    display:inline;
}
.actions a {
    margin:5px 0px 5px 0px;
    padding:5px;
    display:inline-block;
}

#sidebar {
    width: 25%;
    float: right;
}

#sidebar h3 {
    padding: 10px 15px;
    margin: 0;
    font-size: 13px;
}

#sidebar p {
    line-height:5px;
}

#sidebar .block {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

#sidebar .block .content {
    padding: 0 15px;
}

#sidebar ul.navigation li a:link, #sidebar ul.navigation li a:visited {
    display: block;
    padding: 10px 15px;
}

#sidebar .block .sidebar-block, #sidebar .notice {
    padding:10px;
}

#wrapper {
    padding-top: 10px;
}

#main .block {
    margin-bottom: 20px;
    padding-top: 1px;
}

#main .block .content .inner {
    padding: 0 15px 15px;
}

#main .main p.first {
    margin-top: 0;
}

#main img {
    vertical-align: bottom;
    border: none;
}

#user-navigation {
    position: absolute;
    top: 0px;
    right: 20px;
}

#main-navigation {
    width: 100%;
}

#user-navigation ul, #main-navigation ul, .secondary-navigation ul, #sidebar ul.navigation {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#user-navigation ul li, #main-navigation ul li, .secondary-navigation ul li {
    float: left;
}

#main-navigation ul li {
    margin-right: 5px;
    padding:2px;
}

#user-navigation ul li {
    padding: 5px 10px;
}

#main-navigation ul li a:link, #main-navigation ul li a:visited, #main-navigation ul li a:hover, #main-navigation ul li a:active,
.secondary-navigation ul li a:link, .secondary-navigation ul li a:visited, .secondary-navigation ul li a:hover, .secondary-navigation ul li a:active,
#user-navigation ul li a:link, #user-navigation ul li a:visited, #user-navigation ul li a:hover, #user-navigation ul li a:active {
    text-decoration: none;
}

#main-navigation ul li a {
    font-size: 15px;
    display: block;
    padding: 8px 15px;
}

.secondary-navigation {
    font-size: 13px;
    border-bottom-width: 10px;
    border-bottom-style: solid;
}

.secondary-navigation ul li a {
    display: block;
    padding: 10px 15px;
}

#footer {
    padding-bottom: 20px;
}

/* pagination */
div.paging {
    color: #ccc;
    margin: 2em 0em 2em 0em;
}
/* pagination Ends */

/* box */
#box {
    width: 500px;
    margin: 50px auto;
}

#box .block {
    margin-bottom: 20px;
}

#box .block h2 {
    padding: 10px 15px;
    margin: 0;
}

#box .block .content {
    padding: 10px 20px;
}

/** Tables **/

dl dt{
	float: left;
	width: 300px;
}

dl dd {
	height: 35px;
}

table {
    border-right:0;
    color: #333;
    margin-bottom: 10px;
    width: 100%;
}
th {
    border:0;
    border-bottom:2px solid #555;
    text-align: left;
    padding:4px;
}
th a {
    display: block;
    padding: 2px 4px;
    text-decoration: none;
}
th a.asc:after {
    content: ' ⇣';
}
th a.desc:after {
    content: ' ⇡';
}
table tr td {
    background: #fff;
    padding: 6px;
    text-align: left;
    vertical-align: top;
    border-bottom:1px solid #ddd;
}
table .altrow td {
    background: #f5f5f5;
}
td.actions {
    text-align: center;
    white-space: nowrap;
}
table td.actions a {
    margin: 0px 6px;
    padding:2px 5px;
}
.cake-sql-log table {
    background: #f4f4f4;
}
.cake-sql-log td {
    padding: 4px 8px;
    text-align: left;
    font-family: Monaco, Consolas, "Courier New", monospaced;
}
.cake-sql-log caption {
    color:#fff;
}
/* Tables end */

/** Forms **/
form {
    margin-right: 20px;
    padding: 0;
    width: 95%;
}
fieldset {
    border: 1px solid #ccc;
    margin: 10px 0px 10px 0px;
    padding: 16px 20px;
}
fieldset legend {
    background:#fff;
    color: #e87f08;
    font-size: 160%;
    font-weight: bold;
}
fieldset fieldset {
    margin-top: 0px;
    margin-bottom: 20px;
    padding: 16px 10px;
}
fieldset fieldset legend {
    font-size: 120%;
    font-weight: normal;
}
fieldset fieldset div {
    clear: left;
    margin: 0 20px;
}
form div {
    margin-bottom: 1em;
    padding: .5em;
    vertical-align: text-top;
}
form .input {
    color: #444;
}
form .required {
    /*font-weight: bold;*/
}
form .required label:after {
    color: #e32;
    content: '*';
    display:inline;
}
form div.submit {
    border: 0;
    margin-top: 10px;
}
label {
    display: block;
    font-size: 110%;
    margin-bottom:3px;
}
input, textarea {
    clear: both;
    font-family: tahoma, "lucida grande", "verdana", sans-serif;
    padding: 1%;
    width:75%;
    border:1px solid #AFAFAF;
}
select {
    clear: both;
    padding:.5%;
    vertical-align: text-bottom;
    border: 1px solid #AFAFAF;
    width: 50%;
}
select[multiple=multiple] {
    width: 50%;
}
option {
    /*font-size: 120%;*/
    padding: 0 3px;
}
input[type=checkbox] {
    clear: left;
    float: left;
    margin: 0px 6px 7px 2px;
    width: auto;
}
div.checkbox label {
    display: inline;
}
input[type=radio] {
    float:left;
    width:auto;
    margin: 3px 3px 7px 0;
}
div.radio label {
    margin: 0 0 6px 20px;
}
input[type=submit] {
    display: inline;
    font-size: 110%;
    width: auto;
}

/* this will be implemented in noscript tag only */
#js-warning p {
    background:#ffcc00;
    font-size:200%;
    font-family:verdana;
    text-align:center;
    text-transform:uppercase;
    font-weight:bold;
    padding:0.8em;
}

/** Notices and Errors **/
div.message {
    color: #fff;
    font-size: 140%;
    font-weight: bold;
    margin: 0 0 1em 0;
    background: #c73e14;
    padding: 5px;
}
div.error-message {
    color: #c73e14;
    font-weight: bold;
    padding:10px 0px 10px 0px;
}
p.error {
    background-color: #e32;
    color: #fff;
    font-family: Courier, monospace;
    font-size: 120%;
    line-height: 140%;
    padding: 0.8em;
    margin: 1em 0;
}
p.error em {
    color: #000;
    font-weight: normal;
    line-height: 140%;
}

.error1 {
    background: #e32;
    background-image: url(../img/close.png);
    border-color: #f1db96;
    color: #f1db96;
}
.notice1 {
    background: #f4ba0f;
    background-image: url(../img/info.png);
    border-color: #864804;
    color: #864804;
}
.success1 {
    background: green;
    background-image: url(../img/tick_mark.png);
    border-color: #ffffff;
    color: #ffffff;
}
.info1 {
    background-color: #FFFFCC;
    border-color:#DDDDDD;
    color: #848487;
}
.error1, .notice1, .success1, .info1 {
    background-repeat: no-repeat;
    background-position: left  center;
    background-attachment: scroll;
    font-family: 'Courier New',Courier,monospace;
    font-weight: bold;
    font-size: 1.2em;
    padding: 0.6em 0 .6em 3em;
    margin: 5px auto 5px auto;
    text-align: left;
    border-width: 4px;
    border-style: double;
    width: 70%;
}

/* ajax messages */
.flashsuccess {
    border-color:#009E0F;
    background-color:#D1FEA1;
    color:#009E0F;
}
.flashnotice {
    border-color:#864804;
    background-color:#f4ba0f;
    color:#864804;
}
.flasherror {
    border-color:#f1db96;
    background-color:#e32;
    color: #f1db96;
}
.flashsuccess, .flashnotice, .flasherror {
    -moz-border-radius:5px;
    -moz-box-shadow:5px 5px 7px #333;
    -webkit-border-radius:5px;
    -webkit-box-shadow:5px 5px 7px #333;
    font-size: 12px;
    font-weight:bold;
    text-align: center;
    border-width: 4px;
    border-style: double;
    padding:10px;
    line-height:12px;
}

.show_loading_in_center{background: url(../img/ajax-loader.gif) center no-repeat;}
.show_loading_in_right{background: url(../img/ajax-loader.gif) right center no-repeat;}

/* jquery errors css */
label.jqueryError {
    background:transparent url(../img/red_cross_round.gif) no-repeat scroll 0 0;
    color:red;
    margin-left:0.3em;
    padding-left:16px;
    border:none;
}

label.jqueryValid {
    background:transparent url(../img/tick_mark_round.gif) no-repeat scroll 0 0;
    width: 16px;
    height: 16px;
    display: inline;
}

.jqueryError {
    border: 2px solid red;
}
/* jquery errors css ends*/

/* Notices and Errors Ends */


/** Debugging **/
pre {
    color: #000;
    background: #f0f0f0;
    padding: 1em;
}
pre.cake-debug {
    background: #ffcc00;
    font-size: 120%;
    line-height: 140%;
    margin-top: 1em;
    overflow: auto;
    position: relative;
}
div.cake-stack-trace {
    background: #fff;
    color: #333;
    margin: 0px;
    padding: 6px;
    font-size: 120%;
    line-height: 140%;
    overflow: auto;
    position: relative;
}
div.cake-code-dump pre {
    position: relative;
    overflow: auto;
}
div.cake-stack-trace pre, div.cake-code-dump pre {
    color: #000;
    background-color: #F0F0F0;
    margin: 0px;
    padding: 1em;
    overflow: auto;
}
div.cake-code-dump pre, div.cake-code-dump pre code {
    clear: both;
    font-size: 12px;
    line-height: 15px;
    margin: 4px 2px;
    padding: 4px;
    overflow: auto;
}
div.cake-code-dump span.code-highlight {
    background-color: #ff0;
    padding: 4px;
}
div.code-coverage-results div.code-line {
    padding-left:5px;
    display:block;
    margin-left:10px;
}
div.code-coverage-results div.uncovered span.content {
    background:#ecc;
}
div.code-coverage-results div.covered span.content {
    background:#cec;
}
div.code-coverage-results div.ignored span.content {
    color:#aaa;
}
div.code-coverage-results span.line-num {
    color:#666;
    display:block;
    float:left;
    width:20px;
    text-align:right;
    margin-right:5px;
}
div.code-coverage-results span.line-num strong {
    color:#666;
}
div.code-coverage-results div.start {
    border:1px solid #aaa;
    border-width:1px 1px 0px 1px;
    margin-top:30px;
    padding-top:5px;
}
div.code-coverage-results div.end {
    border:1px solid #aaa;
    border-width:0px 1px 1px 1px;
    margin-bottom:30px;
    padding-bottom:5px;
}
div.code-coverage-results div.realstart {
    margin-top:0px;
}
div.code-coverage-results p.note {
    color:#bbb;
    padding:5px;
    margin:5px 0 10px;
    font-size:10px;
}
div.code-coverage-results span.result-bad {
    color: #a00;
}
div.code-coverage-results span.result-ok {
    color: #fa0;
}
div.code-coverage-results span.result-good {
    color: #0a0;
}
/* Debugging Ends */